<?php /* Smarty version 2.6.13, created on 2011-09-13 12:22:02
         compiled from search.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'truncate', 'search.tpl', 72, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "top.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "header.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<script type="text/javascript">
<?php echo '
$(document).ready(function() {
	$("a[rel=product_group]").fancybox({
				\'transitionIn\'		: \'none\',
				\'transitionOut\'		: \'none\',
				\'titlePosition\' 	: \'over\',
				\'titleFormat\'		: function(title, currentArray, currentIndex, currentOpts) {
					return \'<span id="fancybox-title-over">\' + (currentIndex + 1) + \' / \' + currentArray.length + (title.length ? \' &nbsp; \' + title : \'\') + \'</span>\';
				}
			});
});
  

'; ?>

</script>
<div class="wrapperbody">
	<?php if ($this->_tpl_vars['NEWS'] != ''): ?>
	<div class="fr_body paddingleft-page">
              <div class="title_page"><?php if ($_SESSION['LC_ALL'] != 'vi'): ?>News<?php else: ?>Tin tức<?php endif; ?></div>
              <div class="fr_news">
                   <?php $_from = $this->_tpl_vars['NEWS']['data']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['news'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['news']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['item']):
        $this->_foreach['news']['iteration']++;
?>
                       <?php if ($this->_tpl_vars['k'] == '0'): ?>
                       	<div class="news_one">
                          <div class="new_first left">
                              <a href="<?php echo $this->_tpl_vars['WPATH'];  echo $this->_tpl_vars['LINKNEWS'];  echo $this->_tpl_vars['item']->pro_link; ?>
"><img src="<?php echo $this->_tpl_vars['WPATH'];  echo $this->_tpl_vars['PATH'];  echo $this->_tpl_vars['item']->news_image; ?>
" alt="" border="0"></a>
                          </div>
                          <div class="info">
                              <a href="<?php echo $this->_tpl_vars['WPATH'];  echo $this->_tpl_vars['LINKNEWS'];  echo $this->_tpl_vars['item']->pro_link; ?>
" class="title"><?php echo $this->_tpl_vars['item']->news_title; ?>
</a><br />
                              <span class="date"><?php echo $this->_tpl_vars['item']->date; ?>
</span><br />
                              <span class="short"><?php echo $this->_tpl_vars['item']->news_short; ?>
</span>
                          </div>
                          <br class="clear" />
                      </div>
                       <?php else: ?>
                      <div class="news_one">
                          <div class="new_thumb left">
                              <a href="<?php echo $this->_tpl_vars['WPATH'];  echo $this->_tpl_vars['LINKNEWS'];  echo $this->_tpl_vars['item']->pro_link; ?>
"><img src="<?php echo $this->_tpl_vars['WPATH'];  echo $this->_tpl_vars['PATHTHUMB'];  echo $this->_tpl_vars['item']->news_image; ?>
" alt="" border="0" class="thumbimg"></a>
                          </div>
                          <div class="info">
                              <a href="<?php echo $this->_tpl_vars['WPATH'];  echo $this->_tpl_vars['LINKNEWS'];  echo $this->_tpl_vars['item']->pro_link; ?>
" class="title"><?php echo $this->_tpl_vars['item']->news_title; ?>
</a><br />
                              <span class="date"><?php echo $this->_tpl_vars['item']->date; ?>
</span><br />
                              <span class="short"><?php echo $this->_tpl_vars['item']->news_short; ?>
</span>
                          </div>
                          <br class="clear" />
                      </div>	
                      <?php endif; ?>	                
                  <?php endforeach; endif; unset($_from); ?>
                  <div class="clear"></div>    	   
              </div>
               <?php if ($this->_tpl_vars['NEWS']['TOTALPAGE'] > '1'): ?>
              <div>			
                              
                        <div style="text-align:right; float:right" ><?php echo $this->_tpl_vars['NEWS']['FIRST']; ?>
 <?php echo $this->_tpl_vars['NEWS']['PRE']; ?>
&nbsp;<?php echo $this->_tpl_vars['NEWS']['LISTPAGE']; ?>
  <?php if ($_SESSION['LC_ALL'] == 'en'): ?>Pages<?php else: ?>Trang<?php endif; ?> &nbsp; <?php echo $this->_tpl_vars['NEWS']['TOTALPAGE']; ?>
 &nbsp;                   
                            &nbsp;<?php echo $this->_tpl_vars['NEWS']['NEXT']; ?>
 <?php echo $this->_tpl_vars['NEWS']['LAST']; ?>
         
                        </div>
                        <div style="clear:both"></div>		
              </div>	     
              <?php endif; ?>
      </div>  
      <?php endif; ?>
      <?php if ($this->_tpl_vars['SERVICES'] != ''): ?>
      <div class="fr_body paddingleft-page">
              <div class="title_page"><?php if ($_SESSION['LC_ALL'] != 'vi'): ?>Services<?php else: ?>Dịch vụ<?php endif; ?></div>
              <div class="fr_news">
                   <?php $_from = $this->_tpl_vars['SERVICES']['data']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['news'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['news']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['item']):
        $this->_foreach['news']['iteration']++;
?>
                      <div class="news_one">
                          <div class="">
                              <a href="<?php echo $this->_tpl_vars['WPATH'];  echo $this->_tpl_vars['LINKSERVICE'];  echo $this->_tpl_vars['item']->pro_link; ?>
" class="title"><?php echo $this->_tpl_vars['item']->cat_name; ?>
</a><br />
                              <a href="<?php echo $this->_tpl_vars['WPATH'];  echo $this->_tpl_vars['LINKSERVICE'];  echo $this->_tpl_vars['item']->pro_link; ?>
"><?php echo ((is_array($_tmp=$this->_tpl_vars['item']->cat_description)) ? $this->_run_mod_handler('truncate', true, $_tmp, 500, "...", true) : smarty_modifier_truncate($_tmp, 500, "...", true)); ?>
</a>
                          </div>
                          <br class="clear" />
                      </div>	
                  <?php endforeach; endif; unset($_from); ?>
                  <div class="clear"></div>    	   
              </div>
               <?php if ($this->_tpl_vars['SERVICES']['TOTALPAGE'] > '1'): ?>
              <div>			
                              
                        <div style="text-align:right; float:right" ><?php echo $this->_tpl_vars['SERVICES']['FIRST']; ?>
 <?php echo $this->_tpl_vars['SERVICES']['PRE']; ?>
&nbsp;<?php echo $this->_tpl_vars['SERVICES']['LISTPAGE']; ?>
  <?php if ($_SESSION['LC_ALL'] == 'en'): ?>Pages<?php else: ?>Trang<?php endif; ?> &nbsp; <?php echo $this->_tpl_vars['SERVICES']['TOTALPAGE']; ?>
 &nbsp;                   
                            &nbsp;<?php echo $this->_tpl_vars['SERVICES']['NEXT']; ?>
 <?php echo $this->_tpl_vars['SERVICES']['LAST']; ?>
         
                        </div>
                        <div style="clear:both"></div>		
              </div>	     
              <?php endif; ?>
      </div>
       <?php endif; ?> 	  
</div>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "footer.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>        